package com.fhz.roomtest

import androidx.paging.PagingSource
import androidx.room.*

/**
 * 时间:2023/3/27
 * @author Mr.Feng
 * 简述: TODO
 */

@Dao
interface UserDao {
    @Insert
    fun insert(vararg users: User)

    @Delete
    fun delete(user: User)

    @Update
    fun update(user: User)

    @Query("SELECT * FROM user")
    fun getAll(): List<User>



}